import sqlite3

# 连接数据库
conn = sqlite3.connect('app.db')
cursor = conn.cursor()

print("检查User表结构：")
cursor.execute("PRAGMA table_info(user);")
columns = cursor.fetchall()
for column in columns:
    print(column)

print("\n检查管理员用户数据：")
cursor.execute("SELECT id, phone, nickname, is_admin, admin_level FROM user WHERE is_admin = 1;")
admin_users = cursor.fetchall()
for user in admin_users:
    print(user)

conn.close()